import Mock from "mockjs"

const {newList} = Mock.mock({
    "newList|4-10":[{
        "userBackImg":"@image('625x420', '#FF83FA', '#FCFCFC',  'png','Mock.js')",
        "userHerder":"@image('95x95', '', '', 'png', 'Mock.js')",
        "userName":"@cword(7,10)",
        "userLoc":"@cword(4,7)"
    }]
})
Mock.mock('/api/home/users',"post",{
    status:200,
    msg:"users",
})
Mock.mock('/api/home/users',"get",() => {
    return {
        status:200,
        msg : "users",
        list:newList
    }
})